# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-libvhdi-python
_pkgname=libvhdi
__pkgname=libvhdi-python
pkgver=20240509
pkgrel=3
pkgdesc='Library and tools to access the Virtual Hard Disk (VHD) image format.'
url='https://pypi.org/project/libvhdi-python/'
arch=('x86_64' 'aarch64')
license=('LGPL3')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$__pkgname/$__pkgname-20210425.tar.gz")
sha512sums=('377d9e05abad08b1c312d67eaa7ee990cec67ed7a5d5ff532d82f5b37b5968f89cd6a5319a2f0baf0fd64117d669bd2457a244e8e6db1c9befea59264d9dedc6')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

